package util.designpattern.openclosedprinciple20200619;
/**
 * java课程类，实现课程接口
 */
public class JavaCource implements ICourse {
    private  Integer Id;
    private  String name;
    private  Double price;

    public   JavaCource(Integer id, String name, Double price){
        this.Id = id;
        this.name = name;
        this.price = price;
    }
    @Override
    public Integer getId() {
        return this.Id;
    }
    @Override
    public String getName() {
        return this.name;
    }
    @Override
    public Double getPrice() {
        return this.price;
    }
}
